package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 公摊费用表
 */
@Data
@Accessors(chain = true)
@TableName(value = "public_fee")
public class PublicFee {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公摊事件id
     */
    @TableField(value = "public_thing_id")
    private Integer publicThingId;

    /**
     * 那些屋的人应付费
     */
    @TableField(value = "room_id")
    private Integer roomId;

    /**
     * 应收
     */
    @TableField(value = "receive")
    private BigDecimal receive;

    /**
     * 实收
     */
    @TableField(value = "received")
    private BigDecimal received;

    /**
     * 实际缴费人
     */
    @TableField(value = "payer_id")
    private Integer payerId;

    /**
     * 缴费人手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 缴费方式
     */
    @TableField(value = "pay_method")
    private String payMethod;

    /**
     * 发票号
     */
    @TableField(value = "inoceice_num")
    private String inoceiceNum;

    /**
     * 发票图片
     */
    @TableField(value = "inoceice_pic")
    private String inoceicePic;

    /**
     * 缴费时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 是否缴费0未缴，1已缴
     */
    @TableField(value = "`status`")
    private Boolean status;

    /**
     * 创建用户id
     */
    @TableField(value = "creat_by")
    private Integer creatBy;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 更新用户id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 逻辑删除
     */
    @TableField(value = "`enable`")
    private Boolean enable;

    @TableField(exist = false)
    private String building;

    @TableField(exist = false)
    private String unit;

    @TableField(exist = false)
    private String room;

    @TableField(exist = false)
    private String user;

    @TableField(exist = false)
    private String residence;

}